//
//  PKReadHeadScrollView.m
//  PianKe
//
//  Created by lanou on 15/10/12.
//  Copyright (c) 2015年 李伟伟. All rights reserved.
//

#import "PKReadHeadScrollView.h"
#import <UIImageView+WebCache.h>
@implementation PKReadHeadScrollView

-(instancetype)initWithFrame:(CGRect)frame
{
    
    
    self = [super initWithFrame:frame];
    if (self) {
        _imageView1 = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WITDTH-8, SCREEN_HEIGHT/5)];
        _imageView1.userInteractionEnabled = YES;
        _imageView2 = [[UIImageView alloc]initWithFrame:CGRectMake(SCREEN_WITDTH-8, 0, SCREEN_WITDTH-8, SCREEN_HEIGHT/5)];
        _imageView2.userInteractionEnabled = YES;
        _imageView3 = [[UIImageView alloc]initWithFrame:CGRectMake((SCREEN_WITDTH-8) * 2, 0, SCREEN_WITDTH-8, SCREEN_HEIGHT/5)];
        _imageView3.userInteractionEnabled = YES;
        
        [self addSubview:_imageView1];
        [self addSubview:_imageView2];
        [self addSubview:_imageView3];
    }
    return self;
}

-(void)configureScrollImageView:(NSArray *)array;
{
    
    
    [_imageView1 sd_setImageWithURL:[NSURL URLWithString: [(PKHeadScrollViewModel*)array[0] img]]];
    [_imageView2 sd_setImageWithURL:[NSURL URLWithString: [(PKHeadScrollViewModel*)array[1] img]]];
    [_imageView3 sd_setImageWithURL:[NSURL URLWithString: [(PKHeadScrollViewModel*)array[2] img]]];

    
}






@end
